<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../core/include.inc.jsp"%>

<form id="pagerForm" method="post" action="visitlist">
    <input type="hidden" name="pageNum" value="${pageModel.pageNum}" />
    <input type="hidden" name="numPerPage" value="${pageModel.numPerPage}" />
<%--    <input type="hidden" name="blockId" value="${register.blockId}" />--%>
<%--    <input type="hidden" name="nickname" value="${register.nickname}" />--%>
</form>

<form onsubmit="return navTabSearch(this);" action="visitlist" method="post">

    <div class="pageContent">
        <div class="panelBar">
            <ul class="toolBar">
                <%--<li><a class="add" href="" target="dialog" rel="to_module_add"--%>
                <%--width="600" height="400" mask="true"><span>导出excel</span></a></li>--%>
                <%--<li class="line">line</li>--%>

            </ul>
        </div>
        <table class="table" width="100%" layoutH="137">
            <thead>
            <tr>
                <th>序号</th>
                <th>来访人姓名</th>
                <th>来访人手机号</th>
                <th>业主房号</th>
                <th>业主姓名</th>
                <th>来访时间</th>
                <th>来访原因</th>
            </tr>
            </thead>
            <tbody>
            <c:forEach var="item" items="${list}" varStatus="st">
                <tr target="item_id" rel="${item.id}" ondblclick="tableclick()">
                    <td>${st.index+1}</td>
                    <td>${item.visisName}</td>
                    <td>${item.visitPhone}</td>
                    <td>${item.ownerRoomnum}</td>
                    <td>${item.ownerName}</td>
                    <td><fmt:formatDate value="${item.createdate}" pattern="yyyy-MM-dd HH:mm"/></td>
                    <td>${item.visitReason}</td>
                </tr>
            </c:forEach>
            </tbody>
        </table>

        <c:import url="../core/pagebar.inc.jsp" />

    </div>
</form>
<script>
//   $('#register_block_id').val('{register.blockId}');
</script>


